/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Ibr
 */
public class ConnectionFactory {

    private static final String URL = "jdbc:derby://localhost:1527/HAC";
    private static final String USERNAME = "admin";
    private static final String PASSWORD = "admin";

    public static Connection getConnection() throws SQLException {
//        System.out.println("connfactory");
        Connection con = DriverManager.getConnection(URL, USERNAME, PASSWORD);
        return con;
    }
}
